import 'package:json_annotation/json_annotation.dart';


part 'anchorLevelInfo.g.dart';
@JsonSerializable()
class AnchorLevelInfo {
  @JsonKey(defaultValue: 0)
  final int currStream;
  @JsonKey(defaultValue: '')
  final String levelIcon;
  @JsonKey(defaultValue: 0)
  final int totalStream;
  @JsonKey(defaultValue: '')
  final String levelLabel;
  @JsonKey(defaultValue: 0)
  final int level;
  @JsonKey(defaultValue: '')
  final String entryIcon;
  @JsonKey(defaultValue: '')
  final String levelName;

  const AnchorLevelInfo({
    required this.currStream,
    required this.levelIcon,
    required this.totalStream,
    required this.levelLabel,
    required this.level,
    required this.entryIcon,
    required this.levelName,
  });


  factory AnchorLevelInfo.fromJson(Map<String, dynamic> json) =>
      _$AnchorLevelInfoFromJson(json);

  Map<String, dynamic> toJson() => _$AnchorLevelInfoToJson(this);
}